package com.aspose.cells;

class ztw {
   private zbmw a;
   private String b;

   ztw(zbmw var1, String var2) {
      this.a = var1;
      this.b = var2;
   }

   void a(zcfx var1) throws Exception {
      var1.b(true);
      var1.b("slicers");
      this.c(var1);
      this.b(var1);
      var1.b();
      var1.d();
      var1.e();
   }

   private void b(zcfx var1) throws Exception {
      if (this.a != null && this.a.getCount() > 0) {
         zbmt var2 = null;

         for(int var3 = 0; var3 < this.a.getCount(); ++var3) {
            var2 = this.a.a(var3);
            if (com.aspose.cells.b.a.zv.b(var2.a, this.b)) {
               var1.b("slicer");
               var1.a("name", this.b(var2.b));
               var1.a("cache", this.b(var2.b()));
               var1.a("caption", this.b(var2.c()));
               if (1 != var2.f()) {
                  var1.a("columnCount", zase.y(var2.f()));
               }

               if (0 != var2.g()) {
                  var1.a("rowHeight", zase.y(var2.g()));
               }

               if (!"SlicerStyleLight1".equals(var2.a())) {
                  var1.a("style", var2.a());
               }

               if (!var2.d()) {
                  var1.a("showCaption", "0");
               }

               if (var2.e()) {
                  var1.a("lockedPosition", "1");
               }

               if (var2.m != 0) {
                  var1.a("level", zase.y(var2.m));
               }

               if (var2.l != null) {
                  var1.a(var2.l);
               }

               var1.b();
            }
         }
      }

   }

   private boolean a(String var1) {
      return null == var1 || "".equals(var1);
   }

   private String b(String var1) {
      return this.a(var1) ? "" : var1;
   }

   private void c(zcfx var1) throws Exception {
      var1.a("xmlns", zase.f);
      var1.a("xmlns:mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
      var1.a("mc:Ignorable", "x");
      var1.a("xmlns:x", zase.c);
   }
}
